<?php /* Smarty version 2.6.26, created on 2014-02-21 12:00:28
         compiled from admin/commend/show.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'admin/commend/show.html', 15, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="view/admin/style/basic.css" />
<link rel="stylesheet" type="text/css" href="view/admin/style/commend.css" />
</head>
<body>
<h2>商品 -- 评价列表</h2>
<div id="list">
    <table>
        <tr><th>商品名称</th><th>评价用户</th><th>评价内容</th><th>评价星级</th><th>回复内容</th><th>操作</th></tr>
        <?php $_from = $this->_tpl_vars['allCommend']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>    
        <tr><td><?php echo ((is_array($_tmp=$this->_tpl_vars['value']->name)) ? $this->_run_mod_handler('truncate', true, $_tmp, 25) : smarty_modifier_truncate($_tmp, 25)); ?>
</td><td><?php echo $this->_tpl_vars['value']->user; ?>
</td><td><?php echo $this->_tpl_vars['value']->content; ?>
</td><td>
         <?php if ($this->_tpl_vars['value']->star == 5): ?><span class="star">★★★★★</span><?php endif; ?>
         <?php if ($this->_tpl_vars['value']->star == 4): ?><span class="star">★★★★</span><?php endif; ?>
         <?php if ($this->_tpl_vars['value']->star == 3): ?><span class="star">★★★</span><?php endif; ?>
         <?php if ($this->_tpl_vars['value']->star == 2): ?><span class="star">★★</span><?php endif; ?>
         <?php if ($this->_tpl_vars['value']->star == 1): ?><span class="star">★</span><?php endif; ?>
        </td><td><?php if ($this->_tpl_vars['value']->re_content == ''): ?><span style="color:red">尚未回复</span><?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['value']->re_content)) ? $this->_run_mod_handler('truncate', true, $_tmp, 15) : smarty_modifier_truncate($_tmp, 15)); ?>
<?php endif; ?></td><td> <a href="?a=commend&m=update&id=<?php echo $this->_tpl_vars['value']->id; ?>
&name=<?php echo $this->_tpl_vars['value']->name; ?>
"><img src="view/admin/images/edit.gif" alt="编辑" title="编辑"/></a> <a href="?a=commend&m=delete&id=<?php echo $this->_tpl_vars['value']->id; ?>
"><img src="view/admin/images/drop.gif" alt="删除" title="删除" onclick="return confirm('评论删除后，用户可以重新对该订单的商品进行重新评价\r\n如果您想屏蔽评论，请到修改里进行操作!\r\n确认删除?') ? true : false;"/></a></td></tr>
        <?php endforeach; else: ?>
        <tr><td colspan="5">没有任何数据</td></tr>
        <?php endif; unset($_from); ?>
    </table>
</div>
<div id="page"><?php echo $this->_tpl_vars['page']; ?>
</div>
</body>
</html>